﻿using Mangox.Model.Common;
using Mangox.Model.MangoxDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using static Mangox.Model.Common.EnumComm;

namespace MGXAPI.Models
{

    public class RequestModel
    {
        /// <summary>
        /// 用户请求id，暂时用openid，后面可能会加密做其他处理
        /// </summary>
        public string OpenID { get; set; }
        public string Token { get; set; }
        public Source_MGX Source { get; set; }
        public dynamic Param { get; set; }
    }

    /// <summary>
    /// 多终端请求Param
    /// </summary>
    public class RequestM_UserModel : M_User
    {
        /// <summary>
        /// 用户请求id，暂时用openid，后面可能会加密做其他处理
        /// 已改为UserID混淆ID做为主键
        /// </summary>
        //public string OpenID { get; set; }
        //public new Source_MGX Source { get; set; }


        /// <summary>
        /// 登陆后获得的Token，前端保存，调用授权接口回传验证
        /// 加密Token，并且具有有一定的时效性
        /// </summary>
        public string Token { get; set; }
    }


    /// <summary>
    /// 发红包请求参数
    /// </summary>
    public class PubPackageModelReq : RequestModel
    {
        /// <summary>
        /// 总金额
        /// </summary>
        public double Total { get; set; }

        /// <summary>
        /// 红包个数
        /// </summary>
        public int Number { get; set; }

        /// <summary>
        /// 发红包用户
        /// </summary>
        public string Sender { get; set; }

        /// <summary>
        /// 发消息的祝福语
        /// </summary>
        public string Message { get; set; }
    }

    /// <summary>
    /// 获取红包请求参数
    /// </summary>
    public class GetPackageModelReq : RequestModel
    {
        /// <summary>
        /// 红包合约地址
        /// </summary>
        public string Pkgm { get; set; }

        /// <summary>
        /// 资金流水合约地址
        /// </summary>
        public string Depk { get; set; }

        /// <summary>
        /// 抢到红包账户,hash
        /// </summary>
        public string MgxHashID { get; set; }

        /// <summary>
        /// 用户昵称，抢红包后显示
        /// </summary>
        public string UserName { get; set; }        
    }

    /// <summary>
    /// 添加空投请求Param
    /// </summary>
    public class KongTouModelRqt : M_KongTou
    {
        public string Token { get; set; }
        public Source_MGX Source { get; set; }
    }
    /// <summary>
    /// 添加空投请求Param
    /// </summary>
    public class ShuiLongTouRqt : S_ShuiLongTou
    {
        public string Token { get; set; }
        public Source_MGX Source { get; set; }
    }


}